import request from '@/utils/request'

// 查询发展对象申请列表
export function listObject(query) {
  return request({
    url: '/system/object/list',
    method: 'get',
    params: query
  })
}

// 查询发展对象申请详细
export function getObject(objectId) {
  return request({
    url: '/system/object/' + objectId,
    method: 'get'
  })
}

// 新增发展对象申请
export function addObject(data) {
  return request({
    url: '/system/object',
    method: 'post',
    data: data
  })
}

// 修改发展对象申请
export function updateObject(data) {
  return request({
    url: '/system/object',
    method: 'put',
    data: data
  })
}

// 删除发展对象申请
export function delObject(objectId) {
  return request({
    url: '/system/object/' + objectId,
    method: 'delete'
  })
}

// 审核发展对象申请
export function auditObject(data) {
  return request({
    url: '/system/object/audit',
    method: 'put',
    data: data
  })
}